package com.bigger.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bigger.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Update("update user set isVIP = 0,expiration_time = null where id = #{id} ;")
    void cancelVIP(Long id);

    void batchCancelVIP(List<Long> ids);

}
